home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / nn-faq < prev    next >
Encoding:
Internet Message Format  |  1994-05-16  |  47.6 KB

  1. Subject: NN Frequently Asked Questions (FAQ) with Answers
  2. Newsgroups: news.software.nn,news.answers
  3. From: Bill Wohler <wohler@newt.com>
  4. Date: 14 May 1994 10:18:33 GMT
  5.  
  6. Archive-name: nn-faq
  7. Last-modified: $Date: 1994/05/13 17:19:47 $
  8. Version: $Revision: 94.5 $
  9.  
  10.   This is a living list of frequently asked questions on the Usenet
  11.   news reader NN (No News is Good News).  The point of this is to
  12.   circulate existing information, and avoid rehashing old answers.
  13.   Better to build on top than start again.  Please read this document
  14.   before ever posting to this newsgroup.
  15.  
  16.   This article is posted monthly.  If it has already expired and
  17.   you're not reading this, you can hope that you saved the last bit of
  18.   question 3 so that you can get a copy yourself.
  19.  
  20.   Please do not post an answer when someone posts a frequently asked
  21.   question, as I will always e-mail a reply.  This ensures that
  22.   everybody gets their question answered fully and eliminates
  23.   unnecessary traffic in this newsgroup.
  24.  
  25.   Your comments, additions and fixes to this list are welcome: please
  26.   send them to Bill Wohler <wohler@newt.com>.
  27.  
  28.   
  29. Subject: Table of Contents
  30. From: Preface
  31.  
  32. Legend: + new, - deleted, ! changed
  33.  
  34. Introductory
  35.  
  36.  1.  Why should I use nn?
  37.  2.  What is the current version/status of nn?
  38. !3.  Where can I get nn?
  39. !4.  What references exist for nn?
  40.  5.  How should I report bugs?
  41.  6.  How can I convert from rn to nn?
  42.  7.  How can I make life simpler when starting nn for the first time?
  43.  8.  Is there an X interface to nn?
  44.  
  45. Building nn
  46.  
  47.  10. What machines does nn run on?
  48.  11. Is it possible to restrict the groups that users have access to?
  49.  12. Unofficial patches for various bugs
  50.  
  51. Using nn
  52.  
  53.  20. How do I save files that I can read later with MH, elm, Mail, ...?
  54.  21. How come nn doesn't show the Lines count?
  55.  22. How can I find all articles having to do with a certain topic?
  56.  23. How can I set a different Organization name?
  57.  24. Can all non-selected subjects be automatically placed in my kill file?
  58.  25. Can I automatically kill articles based on the Newsgroups header?
  59.  26. How can I select one article in a thread with auto-select-subject set?
  60.  27. Is there a library of macros and other nn features?
  61.  28. Can one search for patterns in the entire article from the menu?
  62.  29. How can I remove old articles from folders?
  63.  30. What's the best way to save multi-part articles?
  64.  31. When saving in +a/b/c keeps you from saving in +a/b.
  65.  32. Can I use my mailer to send mail?
  66.  33. How can I see the original article with the current subject?
  67.  34. Can I choose newsgroups as I do articles, ie. with a menu?
  68.  35. How can I post prewritten articles with nn?
  69.  36. How can nn automatically append my signature?
  70.  37. How do I eliminate double signatures?
  71.  38. Can the signature come from a different file or program?
  72.  39. How can I make mail replies go to a different machine?
  73.  40. How come more articles get selected than I expect?  
  74.  41. Any plans for trn-ish thread following?  
  75.  42. Setting new-group-action to "ask before adding" doesn't work.
  76.  43. Why does nn crash when a letter one past the highest letter is selected?
  77.  44. Why do articles without a Lines header appear empty?
  78.  45. How do I save my posts and replies automatically?  
  79.  46. How can I change how my real name appears?
  80.  47. How can I customize my mail headers for mail and posting?
  81.  48. Can the article viewer/pager be changed?
  82.  49. How do I search for an author in a menu?
  83.  50. Can nn use aliases when sending mail?
  84.  51. How can I see which newsgroups are available?
  85.  52. How can I read MIME articles?
  86.  53. How do I unsubscribe to all groups?
  87. +54. Why am I reading cross-posted articles more than once?
  88.  
  89. nnmaster
  90.  
  91.  60. Why does nnmaster stop collecting articles at the "junk" group?
  92.  61. How do I cope with "Incomplete MASTER file"?
  93.  62. Why isn't nnmaster working?
  94.  63. Why do I get ".../MASTER not found"?
  95.  64. Why do I get "cannot open 'x' file"
  96.  65. Why do I get "Lost connection to server foobar"
  97. +66. Why did nnmaster stop working?
  98.   
  99. Appendix
  100.  
  101.  Glossary, Acknowledgements, Copyright and Warranty
  102.  pack_date.c
  103.  news.c
  104.  nn-use-mh
  105.  nn_elm
  106.  nnalias
  107.  
  108.   
  109. Subject: Viewing This Article
  110. From: Preface
  111.  
  112.   To skip to a particular question numbered xx, use "/^F.*xx" with most
  113.   pagers.  In GNU Emacs type "M-C-s ^F.*xx", (or C-r to search backwards),
  114.   followed by ESC to end the search.  "-xx" is often sufficient.
  115.  
  116.   To skip to new or changed questions, use "/^S.*[!+]" with most pagers and
  117.   "M-C-s ^S.*[!+]" in GNU Emacs.
  118.  
  119.   This article is in digest format.  Nn may have already broken this
  120.   message into separate articles; if not, then type "G %".  In rn, use
  121.   ^G to skip sections.
  122.  
  123.   This article is treated as an outline when edited by GNU Emacs.
  124.   Run "M-x describe-mode" to see available outline-mode commands.
  125.   Useful commands are "C-c C-s" (show-subtree) and "M-x show-all"
  126.  
  127.   Numbers in square brackets denote the month and year of the last
  128.   update.
  129.  
  130.   
  131. Subject: Why should I use nn?
  132. From: Intro-1
  133.  
  134.   nn is a menu based (point and shoot) netnews reader with a complete
  135.   set of features to satisfy both the expert and the novice user.  Since
  136.   its first release in Denmark in 1984 (!), in Europe in 1988, and the
  137.   global release in June 1989, it has replaced rn and other well-known
  138.   news readers at many sites.
  139.  
  140.   Some of the key features of nn are:
  141.  
  142.   * Menu-based article selection prior to reading the articles with the
  143.     articles sorted according to subject and posting time.
  144.  
  145.     This significantly reduces the time spent on news reading.  No
  146.     keystrokes are wasted on articles you don't want to read, and only
  147.     the articles selected on the menu will be read.
  148.  
  149.   * Release 6.4 uses standard .newsrc, and can leave individual
  150.     articles unread.
  151.  
  152.   * Digests are automatically split and presented as ordinary articles!
  153.     You can transparently save and respond to individual subarticles.
  154.  
  155.   * Full folder support: read, save, and delete individual articles.
  156.  
  157.   * Online help and manual.
  158.  
  159.   * Built-in unshar and patch functions.
  160.   * Built-in uudecode function which will automatically unpack,
  161.     concatenate, and decode multi-part postings.
  162.  
  163.   * Easy remapping of keys with advanced macro definition features.
  164.  
  165.   * Automatic kill & selection of articles based on subject or author.
  166.  
  167.   * User specified presentation sequence of news groups based on the
  168.     news group hierarchy.
  169.  
  170.   * Whole classes of news groups can easily be unsubscribed
  171.     permanently, e.g. talk.all and all.politics
  172.  
  173.   * Related groups can be merged and presented as a single group, e.g.
  174.     comp.emacs and all gnu.emacs groups.
  175.  
  176.   * Blindingly fast 'search for subject'.  On my Texas S1500 system, nn
  177.     uses less than 20 seconds to find all articles on a specific
  178.     subject among 64000 articles in all groups!
  179.  
  180.   * News collection and presentation is extremely fast, because nn uses
  181.     its own database on top of the standard news system.
  182.  
  183.   * In a distributed environment, the database can be shared among all
  184.     hosts on the network.  Only one daemon is needed on the news server
  185.     for all hosts.  This works in a heterogenous environment as well.
  186.  
  187.   * NNTP is also supported (using a local database for speed).
  188.  
  189.   Because of the database, nn starts almost equally fast (in a few
  190.   seconds), no matter whether you have 100 or 10000 unread articles!
  191.   The database takes up some disk space, but dramatically improves speed
  192.   and functionality.  The amount of disk space consumed is approx. 1Mb
  193.   per 10000 articles.
  194.  
  195.   
  196. Subject: What is the current version/status of nn?
  197. From: Intro-2
  198.  
  199.   The current version of nn is 6.4.18.
  200.  
  201.   Note: The development of nn has been taken over by Peter Wemm
  202.   <peter@dialix.oz.au>.  Bug reports, fixes and suggestions should be
  203.   sent to nn-bugs@dkuug.dk.
  204.  
  205.   Version 6.5.0 is in the final stages of beta testing.  It will
  206.   include many bug fixes, full NOV capability, a means of
  207.   automatically killing threads of unread articles as well as
  208.   automatically selecting subjects to articles that you've read, a
  209.   mouse sensitive xterm interface, and the program nnsub to subscribe
  210.   to newsgroups.
  211.  
  212.   The adventurous are invited to obtain the beta version.  Please get
  213.   the files README.FIRST and README.b2 in the beta directory, and
  214.   report any bugs to Peter.  See "Where can I get nn" below.  [10.93]
  215.  
  216.   
  217. Subject: ! Where can I get nn?
  218. From: Intro-3
  219.  
  220.   The current master site for nn is uniwa.uwa.edu.au.
  221.  
  222.   via anonymous ftp:                            [5.94]
  223.     uniwa.uwa.edu.au [130.95.128.1]   pub/nn/nn-6.4.18.tar.Z        590k
  224.                         pub/nn/nn-6.4.18.tar.gz        405k
  225.                       pub/nn/beta/nn-6.5.0.b3.tar.gz    515k
  226.     nexus.yorku.ca [130.63.9.66]      pub/linux/sources/news/nn-6.4.18.tar.Z
  227.     ftp.uu.net [192.48.96.9]          networking/news/readers/nn/
  228.                       nn-6.4.18.tar.Z
  229.     qiclab.scn.rain.com [199.2.98.97] pub/news/nn-6.4.18.tar.Z
  230.     gumby.dsd.trw.com [129.193.72.50] pub/news/newsreaders/unix/nn-6.4.18.tar.Z
  231.     mcsun.eu.net [192.16.202.2]          news/readers/nn/nn-6.4.18.tar.Z
  232.     sun.rz.tu-clausthal.de [139.174.2.10] pub/unix/network/apps/news/nn/
  233.                       nn-6.4.18.tar.Z
  234.     ftp.cs.ruu.nl [131.211.80.17]     NN-6.4/nn-6.4.18.tar.gz
  235.     chalmers.se [129.16.1.1]          pub/unix/nn/nn6.4.18.tar.Z
  236.     ftp.luth.se [130.240.18.2]          pub/infosystems/news/readers/nn/
  237.                       nn-6.4.18.tar.Z
  238.     grasp1.univ-lyon1.fr [134.214.100.25] pub/nfs-mounted/ftp.univ-lyon1.fr/
  239.                       mirrors/unix/nn/nn-6.4.18.tar.gz
  240.     ftp.msen.com [148.59.1.8]          pub/packages/news/nntp.1.5.11.tar.Z 210k
  241.     ecs.soton.ac.uk [152.78.64.201]   pub/news/nntp-1.5.11.tar.Z    210k
  242.  
  243.   via anonymous uucp:
  244.     Anyone in the U.S. can get nn source and patches by anonymous
  245.     uucp from uunet by using their 900 number which costs 40
  246.     cents/minute (you don't have to be a uunet subscriber).  The
  247.     number is 1-900-468-7727, login: uucp, no password.  See
  248.     uunet!~/help (~5k) for more info or get uunet!~/index/README (~4k)
  249.     for a current full directory listing.  --Gary Morris <garym@telesoft.com>
  250.  
  251.     uunet!~/news/nn/nn6.4.tar.Z       (~485k)
  252.     uunet!~/news/nn/nn6.4.patch1.Z    (~15k)
  253.           ...
  254.     uunet!~/news/nn/nn6.4.patch16.Z   (~24k)
  255.  
  256.   via mail:
  257.     Send a note to ftpmail@decwrl.dec.com whose body contains "help"
  258.     on a line by itself get information on getting ftp sources by
  259.     mail.
  260.  
  261.     Send a note to mail-server@nluug.nl with a body containing one or
  262.     both of the following as desired:
  263.  
  264.       send news/nn/nn6.4.16.tar.Z
  265.       send news/nntp/nntp.1.5.11.tar.Z
  266.  
  267.   mini-inews: 
  268.     
  269.     As well as bringing mini-inews up to date, modifications have been
  270.     made to remove the need for MINI_INEWS_HEADERS when setting up nn.
  271.     Mini-inews will now create whatever headers are required including
  272.     if desired, a Lines header or an incremental Message-ID numbering
  273.     capability. --Jim Jagielski <jim@jagubox.gsfc.nasa.gov>
  274.  
  275.     jagubox.gsfc.nasa.gov [128.183.44.1]  /pub/misc/NN-6.5.patches.tar.gz   43k
  276.  
  277.   
  278. Subject: ! What references exist for nn?
  279. From: Intro-4
  280.  
  281.   Book:
  282.     The Whole Internet User's Guide & Catalog (2nd Ed), Chapter 8.  Ed Krol.
  283.     ISBN 1-56592-063-5.  $24.95.  543 pages.
  284.     O'Reilly & Associates, Inc.
  285.     Book Orders:
  286.       US and Canada: 800-998-9938.  Fax: 707-829-0104.
  287.  
  288.     To get a list of non-US distributors, send a note to
  289.     nuts@ora.com or call +1-707-829-0515.
  290.  
  291.   Usenet:
  292.     news.software.nn
  293.  
  294.   Mailing list:
  295.  
  296.   NN mailing list archives:
  297.  
  298.   Papers:
  299.     "Intro to nn"
  300.     ftp.cso.uiuc.edu [128.174.5.61]    doc/net/nn.<fmt>
  301.     where <fmt> is one from doc(16k), ps(91k), tex(21k), jpn, and hqx.
  302.  
  303.     "A Short Guide to nn"
  304.     ftp.unl.edu [129.93.1.21]    pub/crc.docs/UNLINFO.GUIDE/UNLINFO.06.nn.<fmt>
  305.     where <fmt> is one from txt(57k), ps(117k), rtf(68k) and hqx(65k).
  306.  
  307.   This document:
  308.     via anonymous ftp:
  309.       rtfm.mit.edu [18.70.0.209]    /pub/usenet/news.answers/nn-faq
  310.       ftp.uu.net [192.48.96.9]        /archive/usenet/news.answers/nn-faq.Z
  311.       ftp.cs.ruu.nl [131.211.80.17]    /pub/NEWS.ANSWERS/nn-faq
  312.  
  313.     via uucp:
  314.       uunet!/archive/usenet/news.answers/nn-faq.Z
  315.  
  316.     via mail:
  317.       Each of the following addresses is following by commands which
  318.       should be included as the body of the message.
  319.       
  320.       mail-server@rtfm.mit.edu
  321.         send usenet/news.answers/nn-faq
  322.  
  323.       mail-server@cs.ruu.nl
  324.     send pub/NEWS.ANSWERS/nn-faq
  325.  
  326.   
  327. Subject: How should I report bugs?
  328. From: Intro-5
  329.  
  330.   Send them to nn-bugs@dkuug.dk.  [10.93]
  331.  
  332.   
  333. Subject: How can I convert from rn to nn?
  334. From: Intro-6
  335.  
  336.   Why bother?  On our system some people use nn and some people use
  337.   rn.  In fact, since they both use the same .newsrc format, it is
  338.   perfectly possible to use both.  --Ian Taylor <ian@airs.com>
  339.  
  340.   
  341. Subject: How can I make life simpler when starting nn for the first time?
  342. From: Intro-7
  343.  
  344.   Use nnsub and eep.  See the enclosed documentation to see which you
  345.   prefer. [note: only available in 6.5.0 beta] --Peter Wemm
  346.   <peter@dialix.oz.au> [10.93]
  347.  
  348.   The standard method is to run nn, exit immediately with 'Q', edit
  349.   ~/.newsrc and replace all occurrences of ':' with '!' (ie. sed
  350.   's/:/!/' .newsrc > foo; mv foo .newsrc) and then replace the '!'
  351.   with a ':' for those groups you're interested in.  [3.93]
  352.  
  353.   I think a nice way is to use the catch-up facility.  Start nn -a0
  354.   and let nn catch up automatically.  After some hours restart nn and
  355.   unsubscribe to uninteresting groups having news articles.  Restart
  356.   nn the following day and continue unsubscribing.
  357.  
  358.   After one week, you have a nice .newsrc.  --Joerg Napp
  359.   <napp@uni-paderborn.de>
  360.  
  361.   
  362. Subject: Is there an X interface to nn?
  363. From: Intro-8
  364.  
  365.   Almost.  In the 6.5.0 beta version, there is a simple text panel,
  366.   with highlighting and mouse sensitivity within an xterm. [10.93]
  367.  
  368.   
  369. Subject: What machines does nn run on?
  370. From: Building nn-10
  371.  
  372.   Please send updates to nn-bugs@dkuug.edu. [10.93]
  373.  
  374.   Operating systems:
  375.  
  376.   3b1 (UNIX-pc) with GCC        SunOS 3
  377.   NeXT 1.0                SunOS 4.0
  378.   AIX 2.2.1                SunOS 4.1 SysV environment
  379.   A/UX 1.1                System V
  380.   4.2 BSD and Ultrix systems        Motorola System V/88 Release 3
  381.   4.3 BSD systems            Texas Instruments System 1500
  382.   dnix 5.2 on DIAB DS90            NCR tower
  383.   dnix 5.3 on DIAB DS90            ULTRIX systems (4.2 based)
  384.   Dynix 3.0 on Symmetry            Mips running riscos 4.0 or greater
  385.   Fortune 32:16                Riscos 4.5 and later
  386.   HPUX (series 300)            Microport UNIX V.2
  387.   HPUX 2.1 (series 800)            Amdahl UTS 2.0
  388.   HPUX 3.0 (series 800)            SCO Xenix 2.2.1 (286) -- terminfo
  389.   HPUX 6.5 or newer (series 300)    SCO Xenix 286 -- termcap
  390.   HPUX 7.0                Xenix386 [termcap version]
  391.   Interactive UNIX on 386        Xenix386 2.3.2 w/development system
  392.   Dynix/PTX on symmetry            Tandy 68000/Xenix 3.2
  393.   Pyramid (and Targon 35)
  394.   SCO UNIX V on 386
  395.   IRIX 3.1/3.2
  396.   Siemens SINIX
  397.  
  398.   Hardware platforms:
  399.  
  400.   3b1 with GCC [no networking]        MIPS processors
  401.   Amdahl 5890 (big iron)        Siemens MX300
  402.   AT&T 3b2                Pyramid (and Targon 35)
  403.   Convex                IBM 6150
  404.   DECstation 3100            Silicon Graphics 4D series
  405.   Gould PN6000                SPARC processors
  406.   HP9000 series 320 and 800 (at least)    80386 based SUNs [have network support]
  407.   Intel 80286 [no networking]        Sequent Symmetry
  408.   Intel 80386 [no networking]        VAX family
  409.   Motorola 68000 family
  410.   Motorola 88000 risc
  411.  
  412.   
  413. Subject: Is it possible to restrict the groups that users have access to?
  414. From: Building nn-11
  415.  
  416.   Create a new group for the people who can read the special groups.
  417.   Call it "privnews", for example. (In /etc/group put the userid of
  418.   each person who's in that group on that group's line.)  Then change
  419.   the group of the spool directory which contains the restricted
  420.   newsgroup to "privnews" (leaving the owner as news), and set the
  421.   mode to 750. --Alexis Rosen <alexis@panix.com>
  422.  
  423.   Note that this only works if you are not using NNTP to read news.
  424.   There is currently no mechanism that will allow this to work with
  425.   NNTP. --Steve Simmons <scs@wotan.iti.org> [1.93]
  426.  
  427.   
  428. Subject: Unofficial patches for various bugs
  429. From: Building nn-12 
  430.  
  431.   Several bugs have been reported and fixed and the patches are
  432.   available here for those not patient enough to wait until the next
  433.   release.  
  434.  
  435.   Remember, these are *unofficial* patches so back them out before
  436.   patching in the next release of nn.  You do not have to strip the
  437.   two leading spaces before these patches.  In fact you can run "patch
  438.   -s -N < this-entire-faq", within the newsreader even!
  439.  
  440.   The patch in appendix "pack_date.c" fixes NN dateline parsing.
  441.   Also, NN mishandles non-GMT time zones near short month boundaries
  442.   due to NN's, er, somewhat unusual time stamp encoding.  It is
  443.   included in nn version 6.5.0.  --Paul Eggert <eggert@twinsun.com>
  444.   [10.93]
  445.  
  446.   
  447. Subject: Can I set up nn securely?
  448. From: Building nn-13
  449.  
  450.   Diffs are unfortunately not included, but this is what you can do:
  451.  
  452.   o Set shell-restrictions in the setup file.
  453.   o Set and lock *every* variable which is used to execute commands.
  454.   o Modify the source to avoid display/save/print files above the
  455.     home-directory if shell-restrictions is set (mainly in save.c).
  456.   o Modify the source to avoid changing directories if shell-restrictions
  457.     is set.
  458.   o Modify the source to avoid showing the contents of locked variables.
  459.  
  460.   In particular, the following variables should be locked:
  461.  
  462.   backup-folder-path, backup-suffix, bug-report-address, decode-header-file,
  463.   editor, folder, inews, mail, mail-record, mailer, news-record, newsrc,
  464.   pager, patch-command, printer, record, spell-checker, unshar-header-file  
  465.  
  466.   
  467. Subject: How do I save files that I can read later with MH, elm, Mail, ...?
  468. From: Using nn-20 
  469.  
  470.   MH:
  471.      Save your files with +$F/$N.  For example, if you save message 10
  472.      in news.software.nn in this way, you will create a file called
  473.      ~/News/news/software/nn/10.  If you have a symbolic link from
  474.      ~/Mail/news to ~/News, then you can look at your saved nn
  475.      messages with "scan +news/news/software/nn".
  476.  
  477.   Mail
  478.      Add "set mail-format" to your init file.  
  479.  
  480.   
  481. Subject: How come nn doesn't show the Lines count?
  482. From: Using nn-21 
  483.  
  484.   Karl Kleinpaste writes:
  485.     C News sites can turn on Lines: header creation (we do here), but
  486.     the default has it turned off.  I wish more would turn it on, as
  487.     several newsreaders put it to use, and it's the most easily
  488.     available metric of article size when showing the user a menu of
  489.     available articles.
  490.  
  491.   Henry Spencer replies:
  492.     We're unenthusiastic about Lines:, which is why it's off by default
  493.     and little-documented.  *The* most easily available metric of
  494.     article size is not line count -- which is often slightly wrong, by
  495.     the way -- but byte count, which is available without even parsing
  496.     the headers.
  497.  
  498.     You can tell C News to add Lines: headers to articles *posted*
  499.     locally, but C News has no provision for adding headers to traffic
  500.     coming in from other sites.  [Specifically, search for the string
  501.     "uncomment" in inews, and uncomment those lines. --bw]
  502.  
  503.   But Paul Eggert <eggert@twinsun.com> and Luc Rooijakkers
  504.   <lwj@cs.kun.nl> provide a solution:
  505.  
  506.     Remember, these are *unofficial* patches so back them out before
  507.     patching in the next release of nn.  You do not have to strip the
  508.     two leading spaces before these patches.  In fact you can run
  509.     "patch -s -N < this-entire-faq", within the newsreader even!  A
  510.     variation of this patch is included in nn version 6.5.0.  See
  511.     appendix "news.c" [10.93]
  512.  
  513.   Finally, Peter Wemm <peter@dialix.oz.au> says that you'll always get
  514.   the lines header if you run INN.
  515.  
  516.   
  517. Subject: How can I find all articles having to do with a certain topic?
  518. From: Using nn-22
  519.  
  520.   nngrab invokes nn on all articles whose subject or keyword fields
  521.   contain a desired keyword.  This shows one how important it is to
  522.   use descriptive subjects and keywords when posting articles.  For
  523.   more information, read the manual page.
  524.  
  525.   
  526. Subject: How can I set a different Organization name?
  527. From: Using nn-23
  528.  
  529.   See "How can I customize my mail headers for mail and posting?" [9.92]
  530.  
  531.   
  532. Subject: Can all non-selected subjects be automatically placed in my kill file?
  533. From: Using nn-24
  534.  
  535.   The two variables, ignore-re and auto-select-rw, accomplish this
  536.   task.  They are available in version 6.5.0.  In the meantime,
  537.   patches may be obtained from dkuug.dk:/pub/nn6.4/nn6.4.killunread.
  538.   --Keld J|rn Simonsen <keld@dkuug.dk>. [1.93]
  539.  
  540.   
  541. Subject: Can I automatically kill articles based on the Newsgroups header?
  542. From: Using nn-25
  543.  
  544.   This is how one can automatically kill crossposted articles, etc.
  545.  
  546.   First, manually either add the following to your .newsrc to mark all
  547.   articles read forever:
  548.  
  549.     alt.flame: 1-2147483647
  550.  
  551.   or add the following to your .nn/kill file to kill all articles in
  552.   the group:
  553.  
  554.     alt.flame:!s/:^
  555.  
  556.   The former method may break down if you ever use nngoback to reset
  557.   numbers in your .newsrc.  The latter method could cause difficulty
  558.   if you ever actually want to read articles in that group.
  559.  
  560.   Near the top of your sequence in your init file put
  561.  
  562.     !alt.flame.
  563.     alt.flame
  564.  
  565.   This makes alt.flame, but not its subgroups, be included as the first
  566.   thing in your sequence; so all articles in it are killed before they
  567.   appear in any other groups.  You might want to put NEW above this so
  568.   you can see if new groups are getting off to a bad start with lots of
  569.   alt.flame crossposting.  Later in the sequence put
  570.  
  571.     % alt %
  572.  
  573.   This allows the rest of the alt hierarchy, including subgroups such
  574.   as alt.flame.spelling (if you subscribe to it), to get included at
  575.   that point in the sequence.
  576.  
  577.   Along with using the default settings of cross-filter-seq=true and
  578.   cross-post=false, this works fine to nuke the crossposted articles.
  579.   --Richard M. Mathews <richard@locus.com> & Dave Shaver <shaver@convex.com>
  580.  
  581.   
  582. Subject: How can I select one article in a thread with auto-select-subject set?
  583. From: Using nn-26
  584.  
  585.   Define the following macro to toggle auto-select-subject.  --Steven
  586.   Grady <grady@fx.com>
  587.  
  588.     map menu A (
  589.         :local auto-select-subject
  590.         :toggle auto-select-subject
  591.         ?auto-select-subject=on echo "Auto-select on"
  592.         ?auto-select-subject=off echo "Auto-select off"
  593.     )
  594.  
  595.   Use the '.' command.
  596.  
  597.   
  598. Subject: Is there a library of macros and other nn features?
  599. From: Using nn-27
  600.  
  601.   When complete, it will be a companion posting to this one.  If you
  602.   have not mailed me <wohler@newt.com> your init file, or you have
  603.   made substantial changes since the last time, please send it in.  If
  604.   anyone is handy in perl or awk and would like to write some scripts
  605.   to reduce multiple init files to variable summaries (like the one I
  606.   posted a long time ago), macro definitions and presentation sequence
  607.   tricks, I would like to talk to you.
  608.  
  609.   
  610. Subject: Can one search for patterns in the entire article from the menu?
  611. From: Using nn-28
  612.  
  613.   No.  However, in 6.5.0, there will be an additional option under the
  614.   'G' command to create a submenu containing articles that contain the
  615.   desired string.  As it is not yet well tested, it will be a compile
  616.   time feature.  --Peter Wemm <peter@dialix.oz.au> [10.93]
  617.  
  618.   
  619. Subject: How can I remove old articles from folders?
  620. From: Using nn-29
  621.  
  622.   Just open the folder in the usual way and C(ancel) the articles you
  623.   want to remove from the folder.  When you leave the folder, nn will
  624.   rewrite the folder with the "cancel"ed articles removed.  --Kim
  625.   Storm <storm@olicom.dk>
  626.  
  627.   
  628. Subject: What's the best way to save multi-part articles?
  629. From: Using nn-30
  630.  
  631.   All you have to do is to save the articles from the menu, e.g.
  632.  
  633.     W(rite) +file.* a b c d... <space>
  634.  
  635.   where a b c d... are the articles on the menu you want to save.  You
  636.   can also save the selected articles on the menu with * (only on
  637.   current page) or + (on all menu pages).  --Kim Storm <storm@olicom.dk>
  638.  
  639.   
  640. Subject: When saving in +a/b/c keeps you from saving in +a/b.
  641. From: Using nn-31 
  642.  
  643.   This happens when default-save-file is $F.  Try changing
  644.   default-save-file to $F/$N (my favorite) to get, for example,
  645.   +news/software/nn/1022, or $G to put everything in
  646.   +news.software.nn.  Finally, if you really did want the behavior of
  647.   +$F, a compromise would be to use +$F. (Andrew's favorite) instead
  648.   (one can use anything other than '.'). --Bill Wohler
  649.   <wohler@newt.com> & Andrew Swann <swann@imada.ou.dk>
  650.  
  651.   Alternatively, use +$F/$L, to place articles for news.software.nn in
  652.   the file +/news/software/nn/nn.  This has two advantages:
  653.   1) You can later read through the folder "nn" and save some of the
  654.     articles under new folder names having to do with the topic.  For
  655.     example, you might save auto-select topics under +$F/auto-sel,
  656.     that is, +/news/software/nn/auto-sel.
  657.   2) If at a later date, a new newsgroup is added below nn, articles
  658.     can still be saved under that subgroup since +/news/software/nn is
  659.     already a directory, not a folder.  --Harry Herman <herman@corpane.uucp>
  660.  
  661.   
  662. Subject: Can I use my mailer to send mail?
  663. From: Using nn-32 
  664.  
  665.   Yes.  See the variables mail-script, mailer, and mailer-pipe-input.
  666.   The following show how you can have nn use elm and MH to mail
  667.   messages.  Note that this does not replace the internal mailer: the
  668.   message is passed on to the selected mailer for further delivery.  [5.94]
  669.  
  670.   The original idea of using MH (namely, comp) to send mail from nn
  671.   came from Jaap Vermeulen <jaap@sequent.com>, but he wouldn't
  672.   recognize what I did to it.  I also used a suggestion from John
  673.   Romine <jromine@ics.uci.edu> and Tom McCain <tom@dynamo.ecn.purdue.edu>.
  674.  
  675.   Add
  676.  
  677.     set mail-script nn-use-mh
  678.  
  679.   to your init file.  See appendix "nn-use-mh" for the script.
  680.  
  681.   In addition, you can contact Ray Davis <rdavis@convex.com> for some
  682.   scripts that sort of turn nn into a MH front end by providing macros
  683.   to save, delete and refile articles in MH folders.
  684.  
  685.   To use elm to send the messages, add the following to ~/.nn/init:
  686.  
  687.     set   mailer              nn_elm
  688.     unset mailer-pipe-input
  689.  
  690.   and see appendix "nn_elm" for the script. [1.93]
  691.  
  692.   
  693. Subject: How can I see the original article with the current subject?
  694. From: Using nn-33 
  695.  
  696.   While reading an article, use "G RET RET RET".
  697.  
  698.   
  699. Subject: Can I choose newsgroups as I do articles, ie. with a menu?
  700. From: Using nn-34
  701.  
  702.   No, not yet.  Sorry.  However, progress in this direction has been
  703.   made--if you care to finish the work, please contact Peter Wemm
  704.   <peter@dialix.oz.au>. [12.92]
  705.  
  706.   See also "How can see which newsgroups are available?"  [1.93]
  707.  
  708.   Outside of nn, you may wish to check out eep which is in the
  709.   contributed area in 6.5.0.  --Peter Wemm <peter@dialix.oz.au> [10.93]
  710.  
  711.   
  712. Subject: How can I post prewritten articles with nn?
  713. From: Using nn-35
  714.  
  715.   nnpost will construct the header for the posted article, so it
  716.   requires several arguments to be specified before the article is
  717.   posted, e.g. a newsgroup name and a subject.  If some arguments are
  718.   missing, nnpost will prompt for the missing arguments.
  719.  
  720.   If your pre-written article includes a full header, then you should
  721.   not use nnpost; instead you should feed the article to "inews -h"
  722.   directly (which is what nnpost does after building the header from
  723.   the arguments).  --Kim Storm <storm@olicom.dk>
  724.  
  725.   
  726. Subject: How can nn automatically append my signature?
  727. From: Using nn-36
  728.  
  729.   Put your signature in a file called .signature in your home
  730.   directory, and use:
  731.  
  732.     set append-signature-post
  733.     set append-signature-mail    # if desired
  734.     set query-signature        # if you want confirmation.
  735.  
  736.   See also "How do I eliminate double signatures?" and
  737.   "Can the signature come from a different file or program?" [3.93]
  738.  
  739.   
  740. Subject: How do I eliminate double signatures?
  741. From: Using nn-37
  742.  
  743.   Double signatures occur when both nn and inews append $HOME/.signature.
  744.  
  745.   If you want just inews to append your signature, use:
  746.  
  747.     unset append-signature-post
  748.  
  749.   This is actually the default, but you can unset this variable if
  750.   your nn administrator has mistakenly turned it on.
  751.  
  752.   If you want just nn to append your signature, move your signature to
  753.   some other place than $HOME/.signature.  Then see, "Can the signature
  754.   come from a different file or program?"
  755.  
  756.   
  757. Subject: Can the signature come from a different file or program?
  758. From: Using nn-38
  759.  
  760.   If you want nn to append your .signature file, you can copy nn's aux
  761.   file (ie. /usr/local/lib/nn/aux) to your .nn directory and set the
  762.   mail-script and news-script variables to ~/.nn/aux.  In your copy of
  763.   the aux script, you can either specify a different place for your
  764.   .signature file (like $HOME/.nn/signature) or you can get fancy: you
  765.   can use specific .signatures for certain groups (saved in variable
  766.   "G"), or use the output of a program.  --Bill Wohler <wohler@newt.com>
  767.  
  768.   Tired of the same old signature?  Want different signatures for
  769.   different newsgroups?  Here's a program to help you out.
  770.  
  771.   The way it works is to have .signature be a named pipe, so if you
  772.   don't have named points, just say 'n'.
  773.  
  774.   The sigrand program then feeds stuff down the pipe everytime someone
  775.   wants to read it.  That way it works for more than just news, but
  776.   for anything that wants to read your .signature, like a mailer.
  777.  
  778.   You have your choice of three kinds of signatures:
  779.  
  780.       1) random (short) fortune from "fortune -s"; you get these if
  781.      you don't have a global sig file.
  782.       2) random fortune from ~/News/SIGNATURES [global sig file]
  783.       3) random fortune form ~/News/(newsgroup)/SIGNATURES [local sig files]
  784.  
  785.   Ask Tom Christiansen <tchrist@convex.com> for more details.
  786.  
  787.   
  788. Subject: How can I make mail replies go to a different machine?
  789. From: Using nn-39
  790.  
  791.   See "How can I customize my mail headers for mail and posting?"  [9.92]
  792.  
  793.   
  794. Subject: How come more articles get selected than I expect?  
  795. From: Using nn-40
  796.  
  797.   Check the setting of subject-match-parts. If this is on, then your subjects
  798.   are considered matched if they match up to the first digit. For example
  799.   if subject-match-parts is on, the subjects:
  800.  
  801.     someprogram Part 1/5
  802.     someprogram Part 2/5
  803.  
  804.   are considered matches. So are
  805.  
  806.     v12345: someprogram Part 1/5
  807.     v12346: anotherprogram Part 1/23
  808.  
  809.   as the "v" is identical up to the first digit. If you want to use
  810.   subject-match-parts in a "comp.sources" type group, set
  811.   subject-match-offset (the character position that matches are
  812.   started from) to be beyond any digits that might appear in the first
  813.   part of the subject.  --Dave Hayes <dave@elxr.jpl.nasa.gov>
  814.  
  815.   
  816. Subject: Any plans for trn-ish thread following?  
  817. From: Using nn-41
  818.  
  819.   "Yes, it's planned."  --Peter Wemm <peter@dialix.oz.au> [10.93]
  820.  
  821.   
  822. Subject: Setting new-group-action to "ask before adding" doesn't work.
  823. From: Using nn-42
  824.  
  825.   Take NEW out of your sequence--it's redundant.
  826.  
  827.   There was also a small bug (fixed in 6.5.0) which caused it to
  828.   not to work in certain situations. --Peter Wemm <peter@dialix.oz.au>
  829.   [10.93] 
  830.  
  831.   
  832. Subject: Why does nn crash when a letter one past the highest letter is selected?
  833. From: Using nn-43
  834.  
  835.   This is fixed in patch 17.  [9.92]
  836.  
  837.   Your terminal modes will be screwed up after such an event, so
  838.   you'll have to type ^J (or LINE-FEED) repeatedly until a prompt is
  839.   seen, and then run
  840.  
  841.     stty -sane^J
  842.  
  843.   or
  844.  
  845.     reset
  846.  
  847.   
  848. Subject: Why do articles without a Lines header appear empty?
  849. From: Using nn-44
  850.  
  851.   This problem only shows up if you have header-lines set to a string
  852.   that includes "L".  It is suspected that having the line count patch
  853.   sets something that makes nn think there is a Lines header and then
  854.   the header-string is telling it to display the Lines header but
  855.   there isn't one and things get messed up.  --Gary Morris
  856.   <garym@telesoft.com>
  857.  
  858.   
  859. Subject: How do I save my posts, followups and replies automatically?  
  860. From: Using nn-45
  861.  
  862.   In your nn init file, use the following lines:
  863.  
  864.     set news-record file
  865.     set mail-record file
  866.  
  867.   to place posts and followups in one file and replies in another, or
  868.   to put everything in a single file, use:
  869.  
  870.     set record file
  871.  
  872.   Replace "file" with the absolute path (~ == home directory ok) of
  873.   your desired file.  All files are saved in mailbox format.  --Don
  874.   Mullins <mullins@convex.com> [9.92]
  875.  
  876.   
  877. Subject: How can I change how my real name appears?
  878. From: Using nn-46
  879.  
  880.   On BSD UNIX systems, you can run the command chfn(1) to change your
  881.   real name.  If you don't want to do this, or can't, please see "How
  882.   can I customize my mail headers for mail and posting?"  [9.92]
  883.  
  884.   
  885. Subject: How can I customize my mail headers for mail and posting?
  886. From: Using nn-47
  887.  
  888.   Headers can be modified or appended to by creating the variables
  889.   mail-header (for replies) and news-header (for posts and followups)
  890.   in the init file. You can include any headers that you want;
  891.   separate multiple headers with semi-colons.  For example:
  892.  
  893.   set mail-header From: Joe Smith <js@cc.edu>;Reply-To: js@cc.edu;
  894.           Organization: CC University
  895.   set news-header From: Joe Smith <js@cc.edu>;Reply-To: js@cc.edu;
  896.           Organization: CC University
  897.  
  898.   Note that these lines are split for readability--the value of these
  899.   variables must appear on a single line.  In addition, do not insert a
  900.   space between semi-colons and the next header.
  901.  
  902.   A Reply-To header is useful when your system generates either an
  903.   unwanted or blatantly wrong return address for you.  If this header
  904.   is present, then mailers use it instead of the system generated From
  905.   header.
  906.  
  907.   A From header is useful when you want to change how your real name
  908.   appears to nn readers, but you don't want to change it (or can't) on
  909.   your system.  Warning: only do this if you're sure you can create a
  910.   RFC 822 compliant From header.  [9.92]
  911.  
  912.   
  913. Subject: Can the article viewer/pager be changed?
  914. From: Using nn-48
  915.  
  916.   No.  And for good reason.  There are too many commands in nn's pager
  917.   that less, for example, doesn't know anything about.
  918.  
  919.   
  920. Subject: How do I search for an author in a menu?
  921. From: Using nn-49
  922.  
  923.   Add the following macro to your init file (~/.nn/init) and invoke
  924.   via '_' (underscore).
  925.  
  926.   # _ does search on sender (as = does a search on subject)
  927.   map menu _ (
  928.     :set select-on-sender
  929.     find input
  930.     :unset select-on-sender
  931.     message
  932.   )
  933.  
  934.   [1.93]
  935.  
  936.   
  937. Subject: Can nn use aliases when sending mail?
  938. From: Using nn-50
  939.  
  940.   Yes.  See the variable mail-alias-expander, and use the script in
  941.   appendix "nnalias."  [1.93]
  942.  
  943.   
  944. Subject: How can I see which newsgroups are available?
  945. From: Using nn-51
  946.  
  947.   To see a list of all news groups with a short description, use the
  948.   command ":post" and type '?'.  To list groups that match a regular
  949.   expression (ie. pattern), use "/pattern" instead of '?'.  --<Sven
  950.   Guckes> guckes@math.fu-berlin.de
  951.  
  952.   Also try using '?' when going to a group with the 'G' command.  Note
  953.   that successive '?'s will display more groups when there is not
  954.   enough room to display all choices at once.  Group completion is
  955.   achieved with ' ' (space).
  956.  
  957.   Finally, the programs "nnsub" or "eep" can be used to easily view
  958.   newsgroup names and descriptions and also to subscribe to groups.
  959.   These programs are in the "contrib" area of the sources in 6.5.0.
  960.   
  961.   [10.93]
  962.  
  963.   
  964. Subject: How can I read MIME articles?
  965. From: Using nn-52
  966.  
  967.   Using metamail, you can do one of the following:
  968.  
  969.   "Print" the message.  Use the "P" command and:
  970.  
  971.     set printer metamail
  972.  
  973.   "save" the message.  Use "s" and specify "|metamail" as a filename.
  974.  
  975.   metamail can be found at:
  976.  
  977.   thumper.bellcore.com [128.96.41.1]    /pub/nsb/mm2.7.tar.Z
  978.  
  979.   [5.94]
  980.  
  981.   
  982. Subject: How do I unsubscribe to all groups?
  983. From: Using nn-53
  984.  
  985.   The file .newsrc in your home directory contains the information
  986.   about the newsgroups, their subscription status and the numbers of
  987.   the read articles.  A colon (':') indicates a subscribed group, and
  988.   an exclamation mark ('!') indicates an unsubscribed group.  All you
  989.   need to do for unsubscribing to all newsgroups is to edit .newsrc.
  990.   You can do this with your favourite editor, or
  991.  
  992.     sed -e 's/:/!/' $HOME/.newsrc > foo
  993.     mv foo .newsrc
  994.  
  995.   If you use csh, you have to escape the '!' with a '\'.  --Sven
  996.   Guckes <guckes@math.fu-berlin.de> [3.93]
  997.  
  998.   
  999. Subject: + Why am I reading cross-posted articles more than once?
  1000. From: Using nn-54
  1001.  
  1002.   If you are using nnmaster and the cross-post detection is broken,
  1003.   then something's wrong that I'm not aware of.
  1004.   
  1005.   If you are using the NOV .overview database, and are not storing the
  1006.   full Xref header, then that will cause it.  --Peter Wemm
  1007.   <peter@DIALix.oz.au> [5.94]
  1008.   
  1009.   If you're running INN, edit /usr/lib/news/overview.fmt and uncomment
  1010.   the line with 'Xref:full' in it.  If you're running Cnews with the
  1011.   NOV patches, you'll have to edit mkov.c (I think) appropriately and
  1012.   recompile; the code for putting Xref: in the NOV database is in
  1013.   there, just commented out. --Richard Todd
  1014.   <rmtodd@servalan.servalan.com> [5.94] 
  1015.  
  1016.   
  1017. Subject: Why does nnmaster stop collecting articles at the "junk" group?
  1018. From: nnmaster-60
  1019.  
  1020.   This can occur when you access news via NNTP.  Older nntp servers
  1021.   have a limitation of 4000 articles in a group, and junk may easily
  1022.   exceed this which makes the nntp server crash.
  1023.  
  1024.   To overcome the problem, edit the GROUPS file to add the X flag on
  1025.   the junk group, run nnmaster -G, and then nnmaster will ignore the
  1026.   junk group.  --Kim Storm <storm@olicom.dk>
  1027.  
  1028.   In nntp_dir/common/conf.h, you can either increase MAX_GROUPS
  1029.   (normally 4096) or you can set #define DYNAMIC_ART_ARRAY (normally
  1030.   #undefed).  In either case, you obviously have to recompile nntp.
  1031.  
  1032.   Normally, new groups are added as they come in, but the news
  1033.   administrator should monitor the junk newsgroup and either make new
  1034.   newsgroups for the orphan messages, or ensure that the feed stops
  1035.   sending bogus messages.  --Mark Rawling
  1036.   <Mark.Rawling@mel.dit.csiro.au> [3.93]
  1037.  
  1038.   
  1039. Subject: How do I cope with "Incomplete MASTER file"?
  1040. From: nnmaster-61
  1041.  
  1042.   See "Why isn't nnmaster working?"  
  1043.  
  1044.   
  1045. Subject: Why isn't nnmaster working?
  1046. From: nnmaster-62 
  1047.  
  1048.   After the make, did you remember to:
  1049.  
  1050.     Run ./inst <options> to install the files?
  1051.     Run ./inst INIT to initialize the database?
  1052.  
  1053.   Nnmaster mails error messages to the user who owns him (typically
  1054.   "news").  Check this mailbox for clues.
  1055.  
  1056.   If nnmaster -r or -D did not work, then neither did nnmaster -I (or
  1057.   ./inst INIT from the install directory).  Once you fix the
  1058.   permissions (see Paul's answer below), you need to rerun the
  1059.   initialization step.  --Stew Ellis <ellis@nova.gmi.edu>
  1060.  
  1061.   If nnmaster dies and updates the Log file with "Incomplete MASTER
  1062.   file", it could be you're not running the latest version.  --David
  1063.   R. Hieb <David.R.Hieb@magi.rootgroup.com>
  1064.  
  1065.   If, when you start your nnmaster, it just exits quietly, it could be
  1066.   that your permissions are incorrect.  Ensure that all directories in
  1067.   the nn library are owned by news (or the owner that you configured
  1068.   nn with).  --Paul Bickerstaff <pbickers@tamaluit.phys.uidaho.edu>
  1069.  
  1070.   Make sure that there is a 'news' entry in passwd and group since
  1071.   nnmaster is run setuid/setgid to news and the files and directories
  1072.   that nnmaster needs to access are owned and writable by news.  --Jim
  1073.   Jagielski <jim@jagubox.gsfc.nasa.gov> [9.92]
  1074.  
  1075.   Another problem could be in the way it is started.  Two related
  1076.   solutions are presented.
  1077.  
  1078.   /etc/rc exits before the child has had the chance to setpgrp().
  1079.   Putting "sleep 5" at the end of /etc/rc fixed it. --David B. Thomas
  1080.   <dt@yenta.alb.nm.us>
  1081.  
  1082.   Another similar solution involved inserting a "sleep 10" at the
  1083.   beginning of /etc/daemons/nnmaster.init file.
  1084.   --Jeffery Small <jeff@cjsa.wa.com>
  1085.  
  1086.   It could be you're not running the latest version.  --David R. Hieb
  1087.   <David.R.Hieb@magi.rootgroup.com>
  1088.  
  1089.   
  1090. Subject: Why do I get ".../MASTER not found"?
  1091. From: nnmaster-63
  1092.  
  1093.   The problem of the NN port to the Atari ST is, that you have to
  1094.   build an "active" file (NN format, not HERMES-like!!) in
  1095.   /usr/lib/news before running nnadmin -I.
  1096.  
  1097.   You can build this file by using the included "buildact.tos."
  1098.   Buildact.tos creates a UNIX-like /usr/lib/news/active from
  1099.   /usr/lib/hermes/active. [9.92]
  1100.  
  1101.   
  1102. Subject: Why do I get "cannot open 'x' file"
  1103. From: nnmaster-64
  1104.  
  1105.   If you get a message like,
  1106.  
  1107.     Fatal system error:
  1108.     alt.activism (6): cannot open 'x' file (mode=82, errno=2)
  1109.  
  1110.   you haven't initialized your database.  As root, run the following
  1111.   command "./inst INIT" in the nn source directory.  See the file
  1112.   INSTALLATION for more information.  --Sami Tikka <Sami.Tikka@hut.fi>
  1113.   [1.93]
  1114.  
  1115.   
  1116. Subject: Why do I get "Lost connection to server foobar"
  1117. From: nnmaster-65
  1118.  
  1119.   It's possible that the two database files for a newsgroup (nnn.x and
  1120.   nnn.d) don't exist.  Go into nnadmin and force a recollect of the
  1121.   newsgroup.  Most of the newsgroups (which are missing nnn.x and
  1122.   nnn.d files) after the first problem newsgroup might be
  1123.   automatically collected without a problem.  If there are a large
  1124.   number of these problem groups, it might be easier just to rebuild
  1125.   the whole database: kill nnmaster, run "./inst INIT" as root in the
  1126.   source directory and restart nnmaster.  --Jeff Beckley
  1127.   <beckley@qualcomm.com>
  1128.  
  1129.   If the group in question has too many articles (>4000), it will
  1130.   cause older NNTP implementations to choke.  See "Why does nnmaster
  1131.   stop collecting articles at the "junk" group?" for a fix. [3.93]
  1132.   
  1133.   
  1134. Subject: + Why did nnmaster stop working?
  1135. From: nnmaster-66
  1136.  
  1137.   Perhaps you have a corrupted database that can't be fixed.  In this
  1138.   case, run "./inst INIT" from the installation procedure.  See also
  1139.   nnmaster-62, "Why isn't nnmaster working?"  --Phil Howard
  1140.   <pdh@netcom.com> [5.94]
  1141.  
  1142.   
  1143. Subject: Glossary
  1144. From: Appendix
  1145.  
  1146.   MIME        Multi-purpose Internet Mail Extensions
  1147.   NNTP        Network News Transport Protocol (see RFC 977)
  1148.   INN        Inter-Network News
  1149.  
  1150.   
  1151. Subject: Acknowledgements
  1152. From: Appendix
  1153.  
  1154. I'd like to thank the following people for providing ideas on the
  1155. layout of this article:
  1156.  
  1157. Joe Wells <jbw@bigbird.bu.edu>          Richard M. Stallman <rms@gnu.ai.mit.edu>
  1158. David Elliott <dce@smsc.sony.com>     Tom Christiansen <tchrist@convex.com>
  1159. Eugene N. Miya <eugene@nas.nasa.gov>
  1160.  
  1161.  
  1162. We are also grateful to the individuals mentioned below and in the
  1163. text of this document who have provided answers or other information
  1164. to make this a better document.  I regret that it is possible that
  1165. some names have been accidently omitted.  I would also like to thank
  1166. all the readers of news.software.nn.
  1167.  
  1168. Kim Storm <storm@olicom.dk>           Sven Guckes <guckes@math.fu-berlin.de>
  1169.  
  1170.   
  1171. Subject: ! Copyright and Warranty
  1172. From: Appendix
  1173.  
  1174.   Copyright 1994 Bill Wohler    
  1175.  
  1176.   This article is free; you can redistribute it and/or modify it under
  1177.   the terms of the GNU General Public License as published by the Free
  1178.   Software Foundation; either version 2, or (at your option) any later
  1179.   version.
  1180.  
  1181.   This article is distributed in the hope that it will be useful,
  1182.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  1183.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1184.   GNU General Public License for more details which can be found
  1185.   in prep.ai.mit.edu[18.71.0.38]:pub/gnu/COPYING.
  1186.  
  1187.   
  1188. Subject: pack_date.c
  1189. From: Appendix
  1190.  
  1191.   *** old/pack_date.c    Wed Apr 17 01:32:40 1991
  1192.   --- new/pack_date.c    Thu Jun  4 20:03:02 1992
  1193.   ***************
  1194.   *** 4,9 ****
  1195.   --- 4,11 ----
  1196.      *    Calculate an approximate "time_stamp" value for a date
  1197.      *    string.  The actual value is not at all critical,
  1198.      *    as long as the "ordering" is ok.
  1199.   +  *    The current algorithm mishandles non-GMT time zones near
  1200.   +  *    short month boundaries, but this is rare in real news.
  1201.      *
  1202.      *    The result is NOT a time_t value, i.e. ctime() will
  1203.      *    not produce the original Date string.
  1204.   ***************
  1205.   *** 256,262 ****
  1206.         res *= 24 * 60;
  1207.         res += (hour * 60) + min;
  1208.     
  1209.   !     return res + tzone(date);
  1210.     }
  1211.     
  1212.     
  1213.   --- 258,264 ----
  1214.         res *= 24 * 60;
  1215.         res += (hour * 60) + min;
  1216.     
  1217.   !     return res - tzone(date);
  1218.     }
  1219.  
  1220.   
  1221. Subject: news.c
  1222. From: Appendix
  1223.  
  1224.   RCS file: news.c,v
  1225.   retrieving revision 1.1
  1226.   diff -c2 -r1.1 news.c
  1227.   *** news.c    1990/10/23 21:37:38    1.1
  1228.   --- news.c    1992/06/19 23:17:05
  1229.   ***************
  1230.   *** 231,235 ****
  1231.         char *parse_header();
  1232.         struct stat statb;
  1233.   !     int retry;
  1234.         FILE *f;
  1235.     #ifdef NNTP
  1236.   --- 231,235 ----
  1237.         char *parse_header();
  1238.         struct stat statb;
  1239.   !     int c, retry;
  1240.         FILE *f;
  1241.     #ifdef NNTP
  1242.   ***************
  1243.   *** 300,309 ****
  1244.         body = parse_header(f, art_hdr_field, modes, buffer1);
  1245.     
  1246.   -     news.ng_lines = news.ng_xlines ? atoi(news.ng_xlines) : -1;
  1247.         if (news.ng_from == NULL) news.ng_from = news.ng_sender;
  1248.     
  1249.   !     if (modes & FILL_OFFSETS) {
  1250.             art->fpos = news.ng_fpos = ftell(f);
  1251.     
  1252.             fseek(f, (off_t)0, 2);
  1253.             news.ng_lpos = ftell(f);
  1254.   --- 300,328 ----
  1255.         body = parse_header(f, art_hdr_field, modes, buffer1);
  1256.     
  1257.         if (news.ng_from == NULL) news.ng_from = news.ng_sender;
  1258.     
  1259.   !     if (modes & FILL_OFFSETS)
  1260.             art->fpos = news.ng_fpos = ftell(f);
  1261.     
  1262.   +     if (news.ng_xlines)
  1263.   +         news.ng_lines = atoi(news.ng_xlines);
  1264.   +     else {
  1265.   + #ifdef NNTP
  1266.   +         if (use_nntp && lazy) {
  1267.   +         off_t fpos = ftell(f);
  1268.   +         fclose(f);
  1269.   +         f = nntp_get_article(art->a_number, 2);
  1270.   +         if (f == NULL) return NULL;
  1271.   +         lazy = 0;
  1272.   +         fseek(f, fpos, 0);
  1273.   +         }
  1274.   + #endif
  1275.   +         news.ng_lines = 0;
  1276.   +         while ((c = getc(f)) != EOF)
  1277.   +         if (c == '\n')
  1278.   +             news.ng_lines++;
  1279.   +     }
  1280.   + 
  1281.   +     if (modes & FILL_OFFSETS) {
  1282.             fseek(f, (off_t)0, 2);
  1283.             news.ng_lpos = ftell(f);
  1284.  
  1285.   
  1286. Subject: nn-use-mh
  1287. From: Appendix
  1288.  
  1289. #!/bin/sh
  1290.  
  1291. # Obtain value of $WORK and $RECORD
  1292. . ${HOME}/.nn/.param
  1293.  
  1294. # Append Fcc: +folder to headers.  The folder is specified in
  1295. # mail-record.
  1296. if [ "$RECORD" != "" ]; then
  1297.       awk '
  1298.       {
  1299.           if ($0 == "" && !done) {
  1300.               print "Fcc: +'$RECORD'";
  1301.               done = 1;
  1302.           }
  1303.           print;
  1304.       }' $WORK > /tmp/aux.$$ && mv /tmp/aux.$$ $WORK
  1305. fi
  1306.  
  1307. # Compose and send the mail
  1308. comp -form $WORK
  1309.  
  1310.   
  1311. Subject: nn_elm
  1312. From: Appendix
  1313.  
  1314. #!/bin/sh
  1315. #
  1316. # nn_elm
  1317. #
  1318. # 07 Aug 91             V1.0
  1319. #
  1320. # Massage a mail message from nn into a form that elm can use
  1321. # (c) 1991 Phil Kernick <phil@ringo.ssn.flinders.edu.au> Wizard Software
  1322. #
  1323.  
  1324. eval `awk '
  1325. BEGIN {
  1326.   FS = ":";
  1327.   dq = sprintf("%c", 34);
  1328.  
  1329.   headers = 0;
  1330.   to = "";
  1331.   subject = "";
  1332. }
  1333.  
  1334. /^.*: / {
  1335.   headers++;
  1336.   if($1 == "To")
  1337.     to = dq substr($0, 5) dq;
  1338.   if($1 == "Subject")
  1339.     subject = dq substr($0, 10) dq;
  1340. }
  1341.  
  1342. /^$/ {
  1343.     printf("tail +%d %s | elm -s %s %s > /dev/null\n", headers+2, mail, subject, to);
  1344.     exit;
  1345. }' mail=$1 $1`
  1346.  
  1347. exit $?
  1348.  
  1349.   
  1350. Subject: nnalias
  1351. From: Appendix
  1352.  
  1353. #!/bin/sh
  1354. #
  1355. # nnalias -- expands aliases from ~/.mailrc file for nn.
  1356. #
  1357. # To use, put the following in your ~/.nn/init file:
  1358. #
  1359. #    set mail-alias-expander nnalias
  1360. # and put this file somewhere in your path, making it executable.  I use
  1361. #    set mail-alias-expander /usr/local/lib/nnalias
  1362. # but the choice is up to you.
  1363. #
  1364. # Written by Scott Hannahs, Bitter National Magnet Lab, MIT, August 1991
  1365. # Complaints, comments, ideas to sth@slipknot.mit.edu
  1366. # Tested on Silicon Graphics, IRIX 3.3.1
  1367. #
  1368. # Minor banging by <rreiner@nexus.yorku.ca> to handle alias value fields
  1369. # which contain doublequote characters, e.g.
  1370. #
  1371. #    alias Foo "Foobar the Great <foo@bar.com>"
  1372. #
  1373. # (the doublequotes are stripped in the expansion), and to handle multiple
  1374. # spaces after the token "alias".
  1375. #
  1376. # Also added some error detection and signal traps; tested on SunOS 4.1.1.
  1377. #
  1378. #    Exit codes:     0 -- normal termination
  1379. #            1 -- parm error
  1380. #            2 -- file does not exist
  1381. #            3 -- trap
  1382. #
  1383. # Thanks to bug reports from
  1384. #  Andy Jacobs and others
  1385. #
  1386. if [ z$1 = z ]; then
  1387.   myname=`basename $0`
  1388.   echo "$myname: usage is  $myname workfile"
  1389.   exit 1
  1390. fi
  1391.  
  1392. if [ ! -f $1 ]; then
  1393.   myname=`basename $0`
  1394.   echo "$myname: $1 does not exist or is a directory"
  1395.   exit 2
  1396. fi
  1397.  
  1398. TMP_DIR=/usr/tmp
  1399.  
  1400. trap "rm -f ${TMP_DIR}/nn.alias.$$ ; exit 3" 0 1 2 3 15
  1401.  
  1402. ALIAS_LIST=""
  1403. ADDRESS_LIST="`head -1 $1 | sed -e s/To://`"
  1404. until [ "$ALIAS_LIST" = "$ADDRESS_LIST" ] ; do
  1405.   ALIAS_LIST="`echo "$ADDRESS_LIST"| sed -e 's/,/ /g' `"
  1406.   ADDRESS_LIST=""
  1407.     for ALIAS in $ALIAS_LIST ; do
  1408.       ADDRESS=`grep '^[     ]*alias[     ][     ]*'"$ALIAS"'[     ]' ${HOME}/.mailrc |\
  1409.       sed      -e s/'^[     ]*alias[     ][     ]*'"$ALIAS"'[     ][     ]*'// |\
  1410.       sed -e s/'"'//g`
  1411.       if [ "$ADDRESS" ] ; then
  1412.     ADDRESS_LIST="$ADDRESS_LIST $ADDRESS"
  1413.       else
  1414.     ADDRESS_LIST="$ADDRESS_LIST $ALIAS"
  1415. #      for elm alias expansion use the following line instead of the previous.
  1416. #      ADDRESS_LIST="$ADDRESS_LIST "`elm -c "$ALIAS" | cut -f3 -d\ `
  1417.       fi
  1418.     done
  1419.   done
  1420. echo "To:${ADDRESS_LIST}" > ${TMP_DIR}/nn.alias.$$
  1421. tail +2 $1 >> ${TMP_DIR}/nn.alias.$$
  1422. mv -f ${TMP_DIR}/nn.alias.$$ $1
  1423.  
  1424. exit 0
  1425.  
  1426.  
  1427. Local Variables:
  1428. mode: outline
  1429. outline-regexp: "^Subject:"
  1430. fill-prefix: "  "  
  1431. eval: (progn (setq buffer-read-only nil) (hide-body))
  1432. End:
  1433.  
  1434.  
  1435.